package mua.core.operation.basis;

import mua.core.value.List;
import mua.core.value.MuaValue;

public class Print {
    public static MuaValue run(MuaValue a){
        if(a==null){
            System.out.println((Object) null);
        }else if(a instanceof List){
            String str = a.toString().replace(",","")
                    //列表里整数不带.0
                    .replace(".0","");
            System.out.println(str.substring(1,str.length()-1));
        } else{
            System.out.println(a.toString());
        }
        return a;
    }
}
